{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Orders" %}{% endblock %} {% block content %}

{% translate "Orders" %}

{% translate "Items callers ordered. Take a new order from the caller’s page. Mobile Money and bank payments are verified automatically from the transaction ID; supervisors verify cash." %}

{% if user.is_supervisor %}
{% translate "Today’s deliveries" %}
{% endif %}
{% translate "Waiting for delivery" %}{{ counts.waiting }} {% translate "Payment not verified" %}{{ counts.unverified }} {% translate "Delivered" %} {% translate "Cancelled" %} {% translate "All" %}
{% if page.object_list %}
{% for o in page %} {% endfor %}
{% translate "Order" %}{% translate "Caller" %}{% translate "Items" %}{% translate "Total" %}{% translate "Received" %}{% translate "Deliver on" %}{% translate "Status" %}{% translate "Parcel ticket" %}
{{ o.number }} {{ o.contact.name }}
{{ o.location }}
{% for i in o.items.all %}{{ i.quantity }} × {{ i.name }}{% if not forloop.last %}, {% endif %}{% endfor %} {{ o.total|tzs }}
{{ o.deliver_on|date:"D j M" }}{% if not o.is_verified %}, {% translate "not verified" %}{% endif %}
{{ o.amount_received|tzs }}{% if o.is_verified %}
{% translate "verified" %}
{% else %}
{% translate "not verified" %}
{% endif %}
{{ o.deliver_on|date:"D j M" }} {{ o.get_status_display }} {% if o.parcel_ticket %}{{ o.parcel_ticket }}{% if o.courier %}
{{ o.courier }}
{% endif %}{% else %}—{% endif %}
{% include "_pager.html" %} {% else %}
{% translate "No orders here." %}{% translate "Open a caller’s page and choose “New order” to take one." %}
{% endif %} {% endblock %}